package com.kaifamiao.demo.d0729.am;

public class Pet {

    public void say(){
        System.out.println("宠物叫");
    }
}

class Dog extends Pet {

    @Override
    public void say(){
        System.out.println(" 汪 汪 汪");
    }

    public void lookDoor(){
        System.out.println("看家护院");
    }
}

class HSQDog extends Dog {

    public void chai(){
        System.out.println(" 拆家 ");
    }

}

class Cat extends Pet {

    @Override
    public void say(){
        System.out.println(" 喵 喵 喵");
    }

    public void lu(){
        System.out.println(" 撸猫 ");
    }
}

class Pig extends Pet {

    @Override
    public void say(){
        System.out.println(" 哼 哼 哼");
    }
}
